package com.coin900.coin.service.sbi;

import com.coin900.coin.persist.sbi.SbiDistrictVO;
import com.value.mybatis.IDaoRouter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author shui
 * @create 2017-11-21
 **/
@Service
public class SbiDistrictService implements ISbiDistrictService {

    @Override
    public void insertSbiDistrict(SbiDistrictVO vo){
        daoRouter.insert("SbiDistrict.insertSbiDistrict", vo);
    }

    @Override
    public void updateSbiDistrict(SbiDistrictVO vo){
        daoRouter.update("SbiDistrict.SbiDistrict", vo);
    }

    @Override
    public void deleteSbiDistrict(SbiDistrictVO vo){
        daoRouter.update("SbiDistrict.deleteSbiDistrict", vo);
    }

    @Override
    public List<SbiDistrictVO> loadSbiDistrict(Map<String, Object> params){
        return daoRouter.query("SbiDistrict.loadSbiDistrict",params);
    }

    @Autowired
    private IDaoRouter daoRouter;

}